
class StudentSignRecordDTO {
  int code;
  String msg;
  List<DataBean> data;

  static StudentSignRecordDTO fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    StudentSignRecordDTO studentSignRecordDTOBean = StudentSignRecordDTO();
    studentSignRecordDTOBean.code = map['code'];
    studentSignRecordDTOBean.msg = map['msg'];
    studentSignRecordDTOBean.data = List()..addAll(
      (map['data'] as List ?? []).map((o) => DataBean.fromMap(o))
    );
    return studentSignRecordDTOBean;
  }

  Map toJson() => {
    "code": code,
    "msg": msg,
    "data": data,
  };
}

class DataBean {
  String nickName;
  bool isSign;
  String startSignTime;
  dynamic endSignTime;

  static DataBean fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    DataBean dataBean = DataBean();
    dataBean.nickName = map['nickName'];
    dataBean.isSign = map['isSign'];
    dataBean.startSignTime = map['startSignTime'];
    dataBean.endSignTime = map['endSignTime'];
    return dataBean;
  }

  Map toJson() => {
    "nickName": nickName,
    "isSign": isSign,
    "startSignTime": startSignTime,
    "endSignTime": endSignTime,
  };
}